* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  /* Updated background to match index page */
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: #334155;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated floating elements background */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.7; }
}

/* Header navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 2rem;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

.nav-container {
    max-width: 1434px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #8b5cf6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Adjust for header navigation */
  padding-top: 80px;
  position: relative;
  z-index: 10;
}

/* Remove sidebar navigation - hide sidebar items */
.sidebar .sidebar-section .sidebar-item {
    display: none;
}

/* Update main layout for no sidebar */
.main-layout {
    display: flex;
    flex: 1;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .container {
        padding-top: 60px;
    }
    
    .main-content {
        padding: 1rem;
    }
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-btn {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  color: #6b7280;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
}

.clustering-settings {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.setting-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.setting-input {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 80px;
}

.setting-select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  min-width: 120px;
}

/* Main Layout */
.main-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 80px);
  position: relative;
}

/* Sidebar - 固定侧边栏 */
.sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem;
  width: 150px;
  height: 100%;
  position: fixed;
  left: 0;
  z-index: 50;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.875rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.5rem;
  flex-direction: column;
  border: 1px solid transparent;
}

.sidebar-item:hover {
  background: rgba(241, 245, 249, 0.8);
  transform: translateX(4px);
  border-color: rgba(148, 163, 184, 0.2);
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4338ca;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.sidebar-item i {
  width: 1.25rem;
  text-align: center;
}

/* Main Content - 适应固定侧边栏 */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-height: calc(100vh - 80px);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Data Input Section */
.data-input-section {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-title {
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-actions {
  display: flex;
  gap: 0.5rem;
}

.input-btn {
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.input-btn:hover {
  background: #e5e7eb;
}

/* 复制按钮样式 - 从generation页面复制 */
.copy-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  background-color: #f3f4f6;
  color: #4b5563;
}

.copy-btn.success {
  color: #10b981;
}

/* input-btn的成功状态 */
.input-btn.success {
  color: #10b981;
}

/* Clustering params in header */
.clustering-params {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 150px;
}

.toggle-text {
  font-size: 0.875rem;
  color: #4b5563;
  white-space: nowrap;
  font-weight: 500;
}

.filter-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.param-label {
  font-size: 0.875rem;
  color: #4b5563;
  white-space: nowrap;
  font-weight: 500;
}

.param-input {
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 70px;
}

.action-btn-primary {
  padding: 0.375rem 0.75rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.input-content {
  padding: 1.5rem;
}

/* Data Textarea */
.data-textarea {
  width: 100%;
  min-height: 250px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  resize: vertical;
  font-size: 0.875rem;
  line-height: 1.6;
  font-family: inherit;
}

.data-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Control Panel */
.control-panel {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-content {
  padding: 1.5rem;
}

.control-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.control-label {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

.control-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 100%;
}

.control-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  gap: 0.5rem;
}

.toggle-label {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: .4s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #6366f1;
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px #6366f1;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Algorithm Selection */
.algorithm-section {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.algorithm-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.algorithm-content {
  padding: 1.5rem;
}

.algorithm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.algorithm-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.algorithm-card:hover {
  border-color: #6366f1;
  transform: translateY(-1px);
}

.algorithm-card.active {
  border-color: #6366f1;
  background: #f0f9ff;
}

.algorithm-name {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.algorithm-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.algorithm-params {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.param-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.param-input {
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Results Section */
.results-section-single {
  display: block;
}

.results-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.results-main {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-title {
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.375rem 0.75rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.results-content {
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.cluster-group {
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.cluster-header {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cluster-title {
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cluster-badge {
  background: #6366f1;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.cluster-items {
  padding: 1rem;
}

.cluster-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.cluster-item:last-child {
  margin-bottom: 0;
}

/* Statistics Sidebar */
.stats-sidebar {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.stats-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-content {
  padding: 1.5rem;
}

.stat-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cluster-legend {
  margin-top: 1rem;
}

.legend-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #6b7280;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .results-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .module-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .action-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }

  .clustering-settings {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .algorithm-grid {
    grid-template-columns: 1fr;
  }
}

.model-selector-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

.model-selector-container label {
  font-weight: 500;
  color: #4b5563;
  display: none;
}

.model-dropdown {
  position: relative;
  display: inline-block;
}

.model-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
  font-weight: 500;
  min-width: 150px;
}

.model-current:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.model-current i {
  font-size: 1rem;
  color: #6b7280;
  margin-right: 0.25rem;
}

.model-current .caret {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.model-dropdown.active .caret {
  transform: rotate(180deg);
}

.model-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: auto;
  min-width: 100%;
  white-space: nowrap;
  margin-top: 0.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.model-dropdown.active .model-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.model-item:hover {
  background-color: #f9fafb;
}

.model-item.active {
  background-color: #f3f4f6;
}

.model-item.active::after {
  content: "\f00c";
  font-family: "Font Awesome\ 6 Free";
  font-weight: 900;
  margin-left: 0.75rem;
  color: #8b5cf6;
}

.model-item i {
  font-size: 1rem;
  color: #6b7280;
}

/* 旧的select样式保留但隐藏，用于保持功能兼容性 */
.model-select {
  display: none;
}

/* 过滤内容样式 */
.filtered-section {
  margin-top: 2rem;
  border: 1px solid #fee2e2;
  border-radius: 0.5rem;
  background-color: #fef2f2;
}

.filtered-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #fee2e2;
  gap: 0.5rem;
}

.filtered-title {
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
}

.filtered-badge {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 1rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.filtered-items {
  max-height: 300px;
  overflow-y: auto;
}

.filtered-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #fee2e2;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.filtered-item:last-child {
  border-bottom: none;
}

.filtered-index {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

/* 格式提示区域样式 */
.format-hint-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
}

.format-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.format-hint i {
  color: #3b82f6;
  font-size: 0.875rem;
}

.format-hint span {
  font-size: 0.875rem;
  color: #475569;
}

.format-example {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.format-example-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.format-example-header i {
  color: #6b7280;
  font-size: 0.75rem;
}

.format-example-header span {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.format-example-content {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #e2e8f0;
}

.format-example-content code {
  color: #475569;
  font-size: 0.8rem;
  background: none;
  padding: 0;
}

/* 输入验证包装器 */
.input-validation-wrapper {
  position: relative;
}

/* 验证消息样式 */
.validation-message {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  display: none;
}

.validation-message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  display: block;
}

.validation-message.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  display: block;
}

.validation-message i {
  margin-right: 0.5rem;
}

/* 输入框错误状态样式 */
.data-textarea.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.data-textarea.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
